MailPoet\Subscribers\ImportExport\Import\Import B

Total Complexity 91
Dependencies 20
Dependents 1
Total lines 680
Lines of code 512
Logical lines of code 265
Comment lines 62
Methods 21
Properties 19

Methods 21

Method Rating Maintainability Complexity Lines of code
process()
A
37 14 75
validateSubscribersData()
A
43 13 49
createOrUpdateSubscribers()
A
43 8 51
createOrUpdateCustomFields()
A
44 8 46
validateDateTimeAttemptCustomFormat()
S
49 6 33
splitSubscribersData()
S
49 5 34
addTagsToSubscribers()
S
50 5 32
validateDateTime()
S
56 4 19
setSubscriptionStatusToDefault()
S
59 4 15
addSubscribersToSegments()
S
54 3 24
__construct()
S
48 2 34
validateImportData()
S
56 3 18
deleteExistingTrashedSubscribers()
S
60 3 14
addField()
S
63 2 11
getSubscribersFields()
S
66 2 9
getCustomSubscribersFields()
S
67 2 9
addMissingRequiredFields()
S
70 2 6
transformSubscribersData()
S
68 2 7
setLinkToken()
S
63 1 11
setSource()
S
64 1 10
synchronizeWPUsers()
S
72 1 5